﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace Model
{
    [DataContract]
    public class Seat
    {
        [DataMember]
        private string seatId;
        [DataMember]
        private int rowNo;
        [DataMember]
        private int no;
        [DataMember]
        private CinemaHall cinemaHall;

        public Seat(string seatId, int rowNo, int no, CinemaHall cinemaHall)
        {
            this.seatId = seatId;
            this.rowNo = rowNo;
            this.no = no;
            this.cinemaHall = cinemaHall;
        }

        public Seat()
        {
            this.seatId = "";
            this.rowNo = -1;
            this.no = -1;
            this.cinemaHall = null;
        }

        public int RowNo
        {
            get { return rowNo; }
            set { rowNo = value; }
        }

        public int No
        {
            get { return no; }
            set { no = value; }
        }

        public CinemaHall CinemaHall
        {
            get { return cinemaHall; }
            set { cinemaHall = value; }
        }

        public string SeatId
        {
            get { return seatId; }
            set { seatId = value; }
        }
    }
}
